import { ValidateFieldCallback } from "element-plus/lib/el-form/src/token";
import { FieldErrorList } from "async-validator";
interface Callback {
    (isValid?: boolean, invalidFields?: FieldErrorList): void;
}
export interface Form {
    validate: (callback?: Callback) => Promise<boolean>;
    resetFields: () => void;
    clearValidate: (props?: string | string[]) => void;
    validateField: (props: string | string[], cb: ValidateFieldCallback) => void;
}